home *** CD-ROM | disk | FTP | other *** search
- Path: norconnect.no!not-for-mail
- From: kenneth@norconnect.no (Kenneth C. Nilsen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How works SetFunction ?
- Date: 20 Jan 1996 06:52:57 +0100
- Organization: NorConnect Internet Services AS
- Message-ID: <983.6593T392T1297@norconnect.no>
- References: <30ff2a88@beachyhd.demon.co.uk>
- NNTP-Posting-Host: norconnect.no
- X-Newsreader: THOR 2.21 (Amiga;SOUP)
-
- UV>>>> oldfunc=SetFunction(library,oldFuncOffset,newFuncPtr)
- UV>>>> what is oldFuncOffset?
- > >> It is the offset in the library that you would jump to (in assembler) to
- > >> call the library function. For example, the Open() function in
- > >> dos.library has an offset of -30.
- KCN>> No no, the oldFuncOffset is the actual pointer to the routine code of
-
- >Isn't this what I said..? The constant "_LVOOpenWindowTagList" is set as
- >-606. So the instruction "move.l #_LVOOpenWindowTagList,a0" puts the value
- >-606 in to a0 (just like I said to put -30 in a0 for dos.library/Open()).
-
- >What's the difference?
-
- Sorry, my fault. I was mixing the oldFunc and oldFuncOffset in the hurry. I
- replied to the oldFunc=, but noticed that he was asking about oldFuncOffset..
-
-
- ---
- CREATIVE LINKS __ Kenneth C. Nilsen
- http://www.norconnect.no/~kenneth /_/\ e-mail: kenneth@norconnect.no
- "Everything you want" \_\/ Software & MultiMedia developer
-